﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FazaDemo.PL.Wpf
{
    class DgridFactoryProvider
    {

        public DataGridFactory Get(string type)
        {
            if (type == "район")
            {
                return new DistrictGridFactory();
            }
            if (type == "н")
            {
                return new PlaceGridFactory();
            }
            return default(DataGridFactory);
        }

    }
}
